package io.github.talelin.latticy.dto.banner;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
@NoArgsConstructor
public class BannerDTO {

    @NotEmpty(message = "{banner.name.not-empty}")
    @Length(max = 26, message = "{banner.title.length}")
    private String name;

    @NotEmpty(message = "{banner.title.not-empty}")
    @Length(max = 50,message = "{banner.title.length}")
    private String title;

    @Length(max = 1000,message = "{banner.description.length}")
    private String description;

    @Length(max = 256,message = "{banner.img.length}")
    private String img;
}
